/*
 * create by ycm on 2006-05-19
 */

package com.probiz.estore.webapp.util;

import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * 
 */
public class SessionUtil {
	public final static String	BOOL_FROMCHECKOUT	= "fromCheckout";

	/**
	 * all attributes save in session must be set a constant String in here the
	 * constant format is [Type]_[Name]
	 */

	protected final static Log	logger	= LogFactory.getLog(SessionUtil.class);

	private static Object getAttribute(HttpSession _session, String sKey) {
		if (_session == null) {
			return null;
		}
		return _session.getAttribute(sKey);
	}



	public static void setAttribute(HttpSession _session, String sKey,
			Object obj) {
		if (_session != null) {
			_session.setAttribute(sKey, obj);
		}
	}




	private SessionUtil() {
	}

}
